{template "mheader.html"}
<form class="form-horizontal" role="form" id="myform">
    {dr_form_hidden()}
<div class="portlet light ">
    <div class="fc-register portlet-title tabbable-line">
        <ul class="nav nav-tabs" style="float:left;">
            <li class="active">
                <a>收货地址</a>
            </li>
        </ul>
    </div>
    <div class="portlet-body">

        <div class="fc-table-note">
            <a onclick="dr_iframe('新增地址', '{dr_member_url('order/address/post')}', '50%', '60%')" class=" btn green btn-sm"><i class="fa fa-home"></i> 添加收货地址</a>
        </div>
        <div class="table-scrollable">
            <table class="table table-striped table-bordered table-hover table-checkable dataTable">
                <thead>
                <tr class="uppercase">
                    <th class="myselect">
                        <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                            <input type="checkbox" class="group-checkable" data-set=".checkboxes" />
                            <span></span>
                        </label>
                    </th>
                    <th width="120"> 别名 </th>
                    <th width="100"> 姓名 </th>
                    <th width="150"> 电话 </th>
                    <th> 地址 </th>
                </tr>
                </thead>
                <tbody>
                {loop $address $t}
                <tr>
                    <td class="myselect">
                        <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                            <input type="checkbox" class="checkboxes" name="ids[]" value="{$t.id}" />
                            <span></span>
                        </label>
                    </td>
                    <td> <a href="javascript:;" onclick="dr_iframe('修改地址', '{dr_member_url('order/address/post')}&id={$t.id}', '50%', '60%')"><span>{$t.cname}</span></a> </td>
                    <td> {$t.name} </td>
                    <td> {$t.phone} </td>
                    <td> {dr_linkagepos(FC_ADDRESS_CITY, $t.city, '', '')} {$t.address}</td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
        <div class="row fc-list-footer table-checkable ">
            <div class="col-md-5 fc-list-select">
                <label class="mt-table mt-checkbox mt-checkbox-single mt-checkbox-outline">
                    <input type="checkbox" class="group-checkable" data-set=".checkboxes" />
                    <span></span>
                </label>
                <button type="button" onclick="dr_ajax_option('{dr_member_url('order/address/del')}', '{dr_lang('你确定要删除它们吗？')}', 1)" class="btn red btn-sm"> <i class="fa fa-trash"></i> {dr_lang('删除')}</button>

            </div>
        </div>

    </div>
</div>


</form>

{template "mfooter.html"}